var express = require('express');
var router = express.Router();
var resultMessage = require('../src/models/resultMessage');

var result = new resultMessage();

var loginRouter = require(__dirname + '/apis/login');
var linkRouter = require(__dirname + '/apis/link');
var sysRouter = require(__dirname + '/apis/sys');

router.post('/refresh', function (req, res, next) {
    res.send(result.ok(new Date()).toString());
});
router.use('/login', loginRouter);
router.use('/link', linkRouter);
router.use('/sys', sysRouter);

module.exports = router;
